import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:lib_util/common/extentions.dart';

class BrowserLoadingDialog extends StatelessWidget {
  const BrowserLoadingDialog({super.key});

  @override
  Widget build(BuildContext context) {
    return Dialog(
      insetPadding: EdgeInsets.all(0),
      backgroundColor: Colors.transparent,
      shadowColor: Colors.transparent,
      surfaceTintColor: Colors.transparent,
      child: UnconstrainedBox(
        child: Container(
          width: 96.w,
          height: 96.w,
          padding: EdgeInsets.only(top: 10.w),
          decoration: BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(8.w), boxShadow: [
            BoxShadow(
                color: Color.fromRGBO(157, 157, 157, 0.18), blurRadius: 12.w, spreadRadius: 0, offset: Offset(0, 4)),
          ]),
          child: Column(
            mainAxisSize: MainAxisSize.min,
            children: [
              Image(
                image: AssetImage('assets/images/dapp/default-avatar.png'),
                height: 60.w,
                width: 60.w,
              ),
              SizedBox(height: 2.w),
              Text(
                'Loading',
                style: TextStyle(color: '#868391'.toColor()),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
